const { dialog, ipcMain } = require('electron')

ipcMain.handle('on-alert-event', (e, message) => {
    dialog.showMessageBox({
        title: '错误',
        message,
        type: 'error'
    })
})